package com.zplus.managers.petservices.mappers;

import com.zplus.managers.petservices.entities.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserMapper
{
    int addUser(User newUser);
    //drop user
    int dropUser(User tuser);
    //update user
    int updateUserInfo(User u);
    // query all user
    List<User> queryAllUser();
    // query specific user by id
    User queryUserByid(@Param("id")int id);

    User queryUserByPhone(@Param("phoneNum") String phoneNum);

    List<User> queryUserByName(@Param("name")String name);

}
